package com.shop.service.impl;

import com.shop.bean.Admin;
import com.shop.dao.LoginDao;
import com.shop.dao.impl.LoginDaoImpl;
import com.shop.service.LoginService;

public class LoginServiceImpl implements LoginService {
	LoginDao ld = new LoginDaoImpl();

	@Override
	public Admin getAdminByAP(String account, String password) {
		return ld.queryByAP(account, password);
	}

	@Override
	public Admin getAdminByAccount(String account) {
		return ld.queryByAccount(account);
	}
	

}
